package visitor;

/**
 * @author wcj
 * @Date 2021/7/12 20:36
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        ObjectStruct objectStruct = new ObjectStruct();

        Man man = new Man();
        Woman woman = new Woman();
        objectStruct.attach(man);
        objectStruct.attach(woman);

        Success success = new Success();
        objectStruct.visit(success);
    }
}
